package com.party.core.model.main;

import com.party.core.model.BaseModel;

import java.util.Objects;

/**
 * @program: party-temp
 * @description: 主页视图数据分析
 * @author: Huaqunhao
 * @create: 2018-10-08 19:00
 **/
public class MainViewAnalyze extends BaseModel {

    //类型0(平台),1(机构)
    private Integer type;
    //统计日期(today,yesterday,beforeYDay,week,month,history,total)
    private String sDate;
    //机构id
    private String memberId;
    //报名数
    private Long applyNum;
    //订单数
    private Long orderNum;
    //资金
    private Double money;
    //浏览量
    private Long viewNum;
    //会员数
    private Long memberNum;
    //实名会员数
    private Long realMemberNum;

    private Long successNum;

    public MainViewAnalyze() {
    }

    public MainViewAnalyze(Integer type, String sDate, String memberId) {
        this.type = type;
        this.sDate = sDate;
        this.memberId = memberId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getsDate() {
        return sDate;
    }

    public void setsDate(String sDate) {
        this.sDate = sDate;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public Long getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(Long applyNum) {
        this.applyNum = applyNum;
    }

    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Long getViewNum() {
        return viewNum;
    }

    public void setViewNum(Long viewNum) {
        this.viewNum = viewNum;
    }

    public Long getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(Long memberNum) {
        this.memberNum = memberNum;
    }

    public Long getRealMemberNum() {
        return realMemberNum;
    }

    public void setRealMemberNum(Long realMemberNum) {
        this.realMemberNum = realMemberNum;
    }

    public Long getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(Long successNum) {
        this.successNum = successNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MainViewAnalyze that = (MainViewAnalyze) o;
        return Objects.equals(type, that.type) &&
                Objects.equals(sDate, that.sDate) &&
                Objects.equals(memberId, that.memberId) &&
                Objects.equals(applyNum, that.applyNum) &&
                Objects.equals(orderNum, that.orderNum) &&
                Objects.equals(money, that.money) &&
                Objects.equals(viewNum, that.viewNum) &&
                Objects.equals(memberNum, that.memberNum) &&
                Objects.equals(realMemberNum, that.realMemberNum);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), type, sDate, memberId, applyNum, orderNum, money, viewNum, memberNum, realMemberNum);
    }

    @Override
    public String toString() {
        return "MainViewAnalyze{" +
                "type=" + type +
                ", sDate='" + sDate + '\'' +
                ", memberId='" + memberId + '\'' +
                ", applyNum=" + applyNum +
                ", orderNum=" + orderNum +
                ", money=" + money +
                ", viewNum=" + viewNum +
                ", memberNum=" + memberNum +
                ", realMemberNum=" + realMemberNum +
                '}';
    }
}
